package com.cf.game.cowboy.msg;

import com.cf.game.service.constants.EnumH5GameMessageType;
import com.cf.game.service.constants.EnumReturnCode;
import com.cf.serialize.Response;


/**
 * cf-game-CowQueryRequest
 * 同步游戏信息
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/3/27 11:41
 */

public class CowGameResultResponse extends Response {
    public static Integer type = EnumH5GameMessageType.COW_BOY_GAME_RESULT.getType();

    private boolean win;

    private boolean selfWin;

    private Double money;

    private Integer index;

    public CowGameResultResponse(boolean win, boolean selfWin, Double money, Integer index) {
        super("获取游戏结果成功！", EnumReturnCode.SUCCESS.getCode());
        this.win = win;
        this.selfWin = selfWin;
        this.money = money;
        this.index = index;
    }

    public boolean getSelfWin() {
        return selfWin;
    }

    public void setSelfWin(boolean selfWin) {
        this.selfWin = selfWin;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    @Override
    public Integer messageType() {
        return type;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        CowGameInfoRequest.type = type;
    }

    public boolean getWin() {
        return win;
    }

    public void setWin(boolean win) {
        this.win = win;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }


}
